package com.wiz.weixin.common;

import java.util.HashMap;
import java.util.Map;

import org.xml.sax.HandlerBase;

import com.wiz.weixin.util.CacheMap;

/**
 * 常量定义

 */
public interface Constant {
	CacheMap<Object, Object> map = CacheMap.getDefault();
	//======================微信url==========================//
	/**得到客户基本信息*/
	String USER_INFO_URL = "https://api.weixin.qq.com/cgi-bin/user/info?access_token=TOKEN&openid=OPENID ";
	
	
	
	//================================================//
	/**根据openId查询会员信息*/
	String QUERY_MEMBER_URL = "http://120.27.130.8:8089/crm/member/listByOpenId/";
	/**注册会员*/
	String ADD_MEMBER_URL = "http://120.27.130.8:8089/crm/member/add";
	/**账户支付明细*/
	String LIST_AMOUNT_HISTORY = "http://120.27.130.8:8089/crm/member/listAmountHistory/";
	/**发送验证码*/
	String SEND_CODE_URL = "http://120.27.130.8:8089/sms/sms/send";
	
	/**扫一扫加油授权*/
	String AUTH_URL = "http://xxx/authority/wx/auth/";
	
	
	/**客户下账户url*/
	String AMOUNT_DETAIL_URL = "http://wx.wiz-tech.com.cn/member/listAccount";
	/**注册会员页面*/
	String MEMBER_REGISTER_URL ="http://wx.wiz-tech.com.cn/member/toRegister?param=PARAM&rand=RAND";
	
	//wx.wiz-tech.com.cn
	
	
	
	
	
	//================================================//
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	/**
	 * 上传图片存放根路径 (%s=图片存放文件夹名)(%s=id)
	 */
	String UNIX_DIR = "/home/upload/img/%s/%s/";
	
	String WIN_DIR = "d:\\img\\%s\\%s\\";
	
	/**
	 * 图片存放文件夹名
	 */
	String MEMBER_ICON  = "member";//用户头像
	String SHOP_ICON  = "shop";//商铺图片
	String GOODS_ICON  = "goods";//商品图片
	String COMMENT_ICON  = "comment";//评论图片
	
	
	/**
	 * 上传前缀，和地址组合使用
	 */
	String UPLOAD_PREFIX = "/home/upload/";
	String UPLOAD_PREFIX_TEST = "d:\\upload\\";
	
	int UPLOAD_MEMBER=1;
	int UPLOAD_SHOP=2;
	int UPLOAD_GOODS=3;
	int UPLOAD_COMMENT=4;
	
	
}
